<?php
// TODO: song    用户个人信息操作   2016/10/20
namespace Home\Common\User;
use Home\Common\User\UserApi as U;
class img_manage  implements U {
	public  function show($ary){
      //取出该用户的图片
		$data = array();
		$pagesize=$ary['pagesize'];
		$pagenow = $ary['pagenow'];
		$where['u_id'] = $_SESSION['user_id'];
		$where['is_activity'] = 1;
		$count = D('images')->where($where)->count();
		$pagecount = ceil($count/$pagesize);
		$totalPages = ($ary['pagenow'] -1)*$pagesize;
		$data['list'] = D('images')->where($where)->limit($totalPages,$pagesize)->order('id desc')->select();

		$data['page'] = array('page'=>$ary['pagenow'],'pagesize'=>$ary['pagesize'],'count'=>$count,'pagecount'=>$pagecount);
		if($data){
			return $data;
		}

  }
  public  function save($ary){

  }
  public  function add($ary){

  }
  public  function delete($ary){

  }
}

?>
